package com.share.design.template;

import java.util.List;

/**
 * author:caifan
 * date:2020/2/5
 */
public class Multi extends Calculator {
    @Override
    public Integer calculate(List<Integer> numbers) {
        Integer total = 1;
        for (Integer num : numbers) {
            total = total * num;
        }
        return total;
    }
}
